package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.check.firecontrolperson;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class FirecontrolPersonService extends BaseService {

	private static final Logger logger = LoggerFactory.getLogger(FirecontrolPersonService.class);


	/**
	 * 消防人员列表
	 * @param
	 * @return
	 */
	public RespEntity firecontrolPersonListPage(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","firecontrolPersonListPage","firecontrolPerson");
	}

	/**
	 * 消防人员详情
	 * @param
	 * @return
	 */
	public RespEntity firecontrolPersonDetail(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","firecontrolPersonDetail","firecontrolPerson");
	}

	/**
	 * 消防人员新增
	 * @param
	 * @return
	 */
	public RespEntity firecontrolPersonAdd(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","firecontrolPersonAdd","firecontrolPerson");
	}

	/**
	 * 消防人员修改
	 * @param
	 * @return
	 */
	public RespEntity firecontrolPersonUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","firecontrolPersonUpdate","firecontrolPerson");
	}

	/**
	 * 消防人员删除
	 * @param
	 * @return
	 */
	public RespEntity firecontrolPersonDelete(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","firecontrolPersonDelete","firecontrolPerson");
	}

}
